package com.leunpha.mini.net.listener;

import com.leunpha.mini.net.events.NetEvent;

import java.util.Observable;

/**
 * User: zhoujingjie
 * Date: 14-6-24
 * Time: 上午9:51
 */
public class ServerListener extends Observable{

    protected void notifyListener(NetEvent event){
        super.setChanged();
        super.notifyObservers(event);
    }

    @Override
    protected synchronized void setChanged() {
        throw new UnsupportedOperationException("不支持此操作");
    }

    @Override
    public void notifyObservers(Object arg) {
        throw new UnsupportedOperationException("不支持此操作");
    }
}
